<#include "/java_copyright.include">
<#assign className = table.className>   
<#assign classNameLower = className?uncap_first> 
package ${basepackage}.biz.${namespace}.service;

import java.util.List;

import ${basepackage}.pojo.DataGrid;
import ${basepackage}.client.domain.${namespace}.${className};
import ${basepackage}.client.query.${namespace}.${className}Query;
public interface ${className}Service{

	/**
	 * 获得数据表格
	 * 
	 * @param bug
	 * @return
	 */
	public DataGrid datagrid(${className}Query ${classNameLower}Query);

	/**
	 * 添加
	 * 
	 * @param ${classNameLower}Query
	 */
	public ${className} add(${className}Query ${classNameLower}Query);

	/**
	 * 修改
	 * 
	 * @param ${classNameLower}Query
	 */
	public void update(${className}Query ${classNameLower}Query) ;
	
	/**
	 *  根据条件更新部分字段
	 * 
	 * @param ${classNameLower}Query
	 */
	public void updatePart(${className}Query ${classNameLower}Query) ;

	/**
	 * 物理删除
	 * 
	 * @param ids
	 */
	public void delete(${table.idColumn.javaType}[] ids);
	
	/**
	 * 逻辑删除 更新状态位
	 * 
	 * @param ids
	 */
	public void deletePt(${table.idColumn.javaType}[] ids);

	/**
	 * 获得
	 * 
	 * @param ${className}
	 * @return
	 */
	public ${className} get(${className}Query ${classNameLower}Query);
	
	
	/**
	 * 获得
	 * 
	 * @param obid
	 * @return
	 */
	public ${className} get(Long id);
	
	/**
	 * 获取所有数据
	 */
	public List<${className}Query> listAll(${className}Query ${classNameLower}Query);

	
	
}
